import { createHashRouter, RouterProvider } from "react-router-dom";
import Home from "./pages/home";
import PleDge from "./pages/pledge";
import JackPot from "./pages/jackpot";
import My from "./pages/my";
import PledgeList from "./pages/pledge/childrenPage/list";
import SwapList from "./pages/my/childrenPage/swapList";
import Swap from "./pages/my/childrenPage/swap";
import Team from "./pages/my/childrenPage/team";
const router = createHashRouter([
  {
    path: "/",
    element: <Home />,
  },
  {
    path: "/JackPot",
    element: <JackPot />,
  },
  {
    path: "/PleDge",
    element: <PleDge />,
  },
  {
    path: "/My",
    element: <My />,
  },
  {
    path: "/PledgeList",
    element: <PledgeList />,
  },
  {
    path: "/SwapList",
    element: <SwapList />,
  },
  {
    path: "/Swap",
    element: <Swap />,
  }, {
    path: "/Team",
    element: <Team />,
  },
]);

function App() {
  return <RouterProvider router={router} />;
}

export default App;
